package com.cn.lyl.service.impl;

import com.cn.lyl.dao.CompanyDao;
import com.cn.lyl.dao.impl.CompanyDaoImpl;
import com.cn.lyl.model.CompanyModel;
import com.cn.lyl.service.CompanyService;

public class CompanyServiceImpl implements CompanyService {
    @Override
    public CompanyModel find() {
        CompanyDao companyDao = new CompanyDaoImpl();
        return companyDao.select();
    }

    @Override
    public String edit(CompanyModel companyModel) {
        CompanyDao companyDao = new CompanyDaoImpl();
        return companyDao.update(companyModel)>0?"success":"error";
    }
}
